echo Download code to local

echo init
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git init
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo Delete origin
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git remote remove origin
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

cho add origin
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git remote add origin https://gitee.com/walter2006/VersionUpdate
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo add code
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git add .
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo commit
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
set yy=%date:~0,4%
set mm=%date:~5,2%
set dd=%date:~8,2%
set hh=%time:~0,2%
set mn=%time:~3,2%
set ss=%time:~6,2%
set filename1=update_%yy%%mm%%dd%%hh%%mn%%ss%

git  commit -m %filename1%
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo delete branch1 if exist
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git branch -d branch1
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo create branch1
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git branch branch1
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo checkout branch1
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git checkout branch1
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo pull origin
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git pull origin master:branch1
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo push origin
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git push origin branch1:master
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo checkout master
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git checkout master
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

echo delete branch1
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
git branch -d branch1
echo End！
echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++